
package com.welsy.classroom.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.welsy.classroom.command.*	
	import com.welsy.classroom.event.*;
		
	
	/**
	 * @version	$Revision: 1.1 $
	 */
	public class MainController extends FrontController
	{
		public function MainController()
		{
			initialiseCommands();
		}
		
		public function initialiseCommands() : void
		{
			addCommand(GetAllEditingClassroomEvent.EVENT_GETALLEDITINGCLASSROOM, GetAllEditingClassroomCommand);
			addCommand(GetClassComponentsEvent.EVENT_GETCLASSCOMPONENTS, GetClassComponentsCommand);
			addCommand(SaveItersEvent.EVENT_SAVEITERS, SaveItersCommand);
			addCommand(RemoveClassesEvent.EVENT_REMOVECLASSES, RemoveClassesCommand);
			addCommand(AddUserEvent.EVENT_ADDUSER, AddUserCommand);
			addCommand(AddNewsEvent.EVENT_ADDNEWS, AddNewsCommand);
		}
	}
}